package com.hsgene.message.persistence;

import com.hsgene.mq.outsystem.SystemOutMQInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author wxf
 * @date 2018/12/11 17:47
 **/
public interface TripartiteRequestRepository {

    /**
     * 获取机构订单信息
     *
     * @param orderId 机构
     * @return
     */
    List<SystemOutMQInfo> getAgencyOrderInfo(@Param("orderId") String orderId);

    /**
     * 更新
     * @param orderId 订单id
     * @param agencyId 机构id
     * @param status 状态
     */
    void updateOrderIsSend(@Param("orderId") String orderId, @Param("agencyId")String agencyId,@Param("status")
            Integer status);

    /**
     * 获取推送机构失败的订单数据
     *
     * @return
     */
    List<SystemOutMQInfo> getSendFailedAgencyOrderInfo();
}
